package com.health.db.service.sm;

import com.health.db.model.GoodsDataUser;
import com.health.db.model.RegisterOrder;

import io.rong.models.CodeSuccessReslut;
import io.rong.models.PushMessage;
import io.rong.models.TokenReslut;

public interface IRongService {

	TokenReslut getUserToken(String userId, String userName, String portraitUri);

	CodeSuccessReslut refreshUserInfo(String userId, String userName,
			String portraitUri);

	CodeSuccessReslut createGroup(String[] userIds, String groupId,
			String groupName);

	CodeSuccessReslut joinGroup(String[] userIds, String groupId,
			String groupName);

	CodeSuccessReslut dismissGroup(String userId, String groupId);

	CodeSuccessReslut PublishSystemCloseOrderMsg(String orderId, String userId,
			String[] toUserId);

	CodeSuccessReslut PublishSystemOrderToDocMsg(RegisterOrder order);

	CodeSuccessReslut PublishSystemOrderToUserMsg(RegisterOrder order);

	CodeSuccessReslut PublishSystemOrderToDocMsgNoChannel(RegisterOrder order);
	
	CodeSuccessReslut broadcastPush(PushMessage pushMessage);

	CodeSuccessReslut PublishSystemRecordToDocMsg(GoodsDataUser dataUser);

	CodeSuccessReslut PublishSystemMsg(String fromUserId, String toUserId,String msg);
	
	CodeSuccessReslut quitGroup(String[] userIds, String groupId);
	
	CodeSuccessReslut PublishSystemOrderToAssisMsg(String fromUserId, String toUserId, String groupId);
	
	CodeSuccessReslut PublishGroupMsg(RegisterOrder order);

}
